/*
 * Project: yygh-parent
 *
 * File Created at 2023/9/5
 *
 * 自定义时间格式代替DATE标签：2023-09-05 16:51:16:51
 */

import org.joda.time.DateTime;

import java.io.IOException;
import java.util.Date;

/**
 * @author 用户名
 * @Type test01.java
 * @Desc
 * @date 2023/9/5 16:51
 */
public class test01 {
    public static void main(String[] args) throws IOException {

        String a="qqqqqqqqqqqzss";
        System.out.println(a.toString());
        Date date = new Date();
        date.setHours(00);
        System.out.println(date);
        int i = dayOrNight(date);
        System.out.println(i);
        byte []dd={1,3,10,0};

        System.in.read(dd);

    }
    public static int dayOrNight(Date date){

        DateTime dateTime = new DateTime(date);
        int hourOfDay = dateTime.getHourOfDay();
        if (hourOfDay>12){
            return 1;
        }else {
            return 0;
        }



    }

}
class dd{
   void aa(){}

}
class ee{
    public static void main(String[] args) {
        dd dd = new dd();
        dd.aa();
    }

}




/**
 * Revision history
 * -------------------------------------------------------------------------
 * <p>
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2023/9/5 用户名 create
 */ 
